package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商城模板配置对象 goods_template
 * 
 * @author ruoyi
 * @date 2024-03-22
 */
public class GoodsTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 模板内容 */
    private String content;

    /** 父级id */
    @Excel(name = "父级id")
    private Long parentId;

    /** 购买0非首页,1首页 */
    @Excel(name = "购买0非首页,1首页")
    private Long isFirst;

    /** 购买0不可购买,1可以购买 */
    @Excel(name = "购买0不可购买,1可以购买")
    private Long isCanSale;

    /** 个人限购数量(-1不限购) */
    @Excel(name = "个人限购数量(-1不限购)")
    private Long individualLimit;

    /** 下面是否挂载商品(0否1是) */
    @Excel(name = "下面是否挂载商品(0否1是)")
    private Long isHaveGoods;

    /** 入口图 */
    private String img;

    /** 页面跳转路径 */
    private String pageUrl;

    /** 是否启用 1-启用 0-未启用 */
    @Excel(name = "是否启用 1-启用 0-未启用")
    private Long status;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 类型1常规,2特殊(暂不使用) */
    @Excel(name = "类型1常规,2特殊(暂不使用)")
    private Long type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setIsFirst(Long isFirst) 
    {
        this.isFirst = isFirst;
    }

    public Long getIsFirst() 
    {
        return isFirst;
    }
    public void setIsCanSale(Long isCanSale) 
    {
        this.isCanSale = isCanSale;
    }

    public Long getIsCanSale() 
    {
        return isCanSale;
    }
    public void setIndividualLimit(Long individualLimit) 
    {
        this.individualLimit = individualLimit;
    }

    public Long getIndividualLimit() 
    {
        return individualLimit;
    }
    public void setIsHaveGoods(Long isHaveGoods) 
    {
        this.isHaveGoods = isHaveGoods;
    }

    public Long getIsHaveGoods() 
    {
        return isHaveGoods;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setPageUrl(String pageUrl) 
    {
        this.pageUrl = pageUrl;
    }

    public String getPageUrl() 
    {
        return pageUrl;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("content", getContent())
            .append("parentId", getParentId())
            .append("isFirst", getIsFirst())
            .append("isCanSale", getIsCanSale())
            .append("individualLimit", getIndividualLimit())
            .append("isHaveGoods", getIsHaveGoods())
            .append("img", getImg())
            .append("pageUrl", getPageUrl())
            .append("status", getStatus())
            .append("sort", getSort())
            .append("remark", getRemark())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
